﻿using AutoTest.Domain.Enums;
using SqlSugar;

namespace AutoTest.Domain.Entities
{
    /// <summary>
    /// 后台用户
    /// </summary>
    [SugarTable("t_admin_user", TableDescription = "后台用户表")]
    public class AdminUser : AllBaseEntity
    {
        ///<summary>
        /// id
        ///</summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "id", ColumnDescription = "主键Id")]
        public long Id { get; set; } = 0;
        ///<summary>
        /// 用户名
        ///</summary>
        [SugarColumn(ColumnName = "user_name",ColumnDescription = "")]
        public string UserName { get; set; } = string.Empty;
        ///<summary>
        /// 密码
        ///</summary>
        [SugarColumn(ColumnName = "password", ColumnDescription = "")]
        public string Password { get; set; } = string.Empty;
        ///<summary>
        /// 创建时间
        ///</summary>
        [SugarColumn(ColumnName = "create_time", ColumnDescription = "")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        ///<summary>
        /// 更新时间
        ///</summary>
        [SugarColumn(ColumnName = "update_time", ColumnDescription = "")]
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnName = "status", ColumnDescription = "")]
        public EnumStatus Status { get; set; } = EnumStatus.Disable;

    }
}
